package com.java.entity.ext;

import java.math.BigDecimal;

public class WorkInfo {

	private BigDecimal score;

	private BigDecimal weight;
	

	public WorkInfo(BigDecimal score, BigDecimal weight) {
		super();
		this.score = score;
		this.weight = weight;
	}

	public BigDecimal result() {
		try {
			return this.score.multiply(this.weight.divide(new BigDecimal(100)));
		} catch (Exception e) {
			e.printStackTrace();
			return new BigDecimal(0);
		}
	}

	public BigDecimal getScore() {
		return score;
	}

	public void setScore(BigDecimal score) {
		this.score = score;
	}

	public BigDecimal getWeight() {
		return weight;
	}

	public void setWeight(BigDecimal weight) {
		this.weight = weight;
	}
	
}
